package com.tz.farmer.controller;

import com.smartPark.msframe.result.ResultEx;
import com.tz.farmer.enums.ErrorCodeEnum;
import com.tz.farmer.service.WebGoodsSerice;
import com.tz.farmer.util.ResultExM;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;


@RestController
@Slf4j
@Api(tags = "产品名称")
@RequestMapping("/goods")
public class WebGoodsController {


    @Resource
    WebGoodsSerice webGoodsSerice;
    /**
     * 区县列表
     *
     * @param
     * @return
     */
    @GetMapping("/names")
    @ApiOperation("区县列表")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "", value = "", dataType = "", defaultValue = "", required = false)
    })
    public ResultEx getGoods() {
        return webGoodsSerice.getGoods();
    }



}
